//
//  item_get_response.m
//  yuimall_Iphone
//
//  Created by yuike6 yuike6 on 12-4-16.
//  Copyright (c) 2012年 yuike. All rights reserved.
//

#import "item_get_response.h"
#import "header.h"

@implementation item_get_response
@synthesize item;

-(void) dealloc
{
    YRelease(item);
    [super dealloc];
}

-(void) privateInit
{
    Item * tmp_item = [[Item alloc] initWithXmlTree:[self.xmlTree parsedTreeAtPath:@"item_get_response/item"]];
    self.item = tmp_item;
    YRelease(tmp_item);
}


-(id) initWithXmlTree:(XMLParsedTree *)tree
{
    self = [super initWithXmlTree:tree];
    if (self) {
        [self privateInit];
    }
    
    return self;
}


-(id) initWithXmlString:(NSString *)xmlString
{
    self = [super initWithXmlString:xmlString];
    if (self) {
        [self privateInit];
    }
    return self;
}

-(id) initWithXmlData:(NSData *)xmlData
{
    self = [super initWithXmlData:xmlData];
    if (self) {
        [self privateInit];
    }
    return self;
}
@end
